package service.impl;

import dao.DeptDao;
import dao.impl.DeptDaoimpl;
//import dao.impl.UserDaoimpl;
import pojo.Dept;
//import pojo.User;
import service.DeptService;
//import service.UserService;

import java.sql.SQLException;
import java.util.List;

public class DeptServiceimpl implements DeptService {

    DeptDao deptDao = new DeptDaoimpl();

    @Override
    public List<Dept> findAll() throws SQLException {
        List<Dept> depts = deptDao.findAll();
        return depts;
    }
}
